package com.kamistoat.meimeimall.meimeimallware.feign;

import com.kamistoat.meimeimall.common.To.productTo.SkuBaseInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("meimeimall-product")
public interface ProductFeignService {
    /**
     * 远程接口，在addStock()中被调用
     *
     * @param skuId 跨模通信的传输对象类
     */
    @RequestMapping("meimeimallproduct/skuinfo/getSkuFeign")
    SkuBaseInfoTo getSkuFeign(@RequestBody Long skuId);
}
